package com.csun.cmny.provider.service.impl;

import com.csun.cmny.core.support.BaseService;
import com.csun.cmny.provider.dao.OmcOldLivingHabitMapper;
import com.csun.cmny.provider.model.domain.OmcOldLivingHabit;
import com.csun.cmny.provider.model.vo.LivingHabit.LivingHabitVo;
import com.csun.cmny.provider.model.vo.customerArchives.FamilyMedicalHistoryVo;
import com.csun.cmny.provider.service.OmcOldLivingHabitService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Slf4j
@Service
@Transactional(rollbackFor = Exception.class)
public class OmcOldLivingHabitServiceImpl extends BaseService<OmcOldLivingHabit> implements OmcOldLivingHabitService {
    @Resource
    private OmcOldLivingHabitMapper livingHabitMapper;

    @Override
    public List<LivingHabitVo> selectLivingHabit(Long oldmanId) {
        return livingHabitMapper.selectLivingHabit(oldmanId);
    }
}
